package cn.com.blueInfo.HaiYuan.business.drugs.mapper;

import cn.com.blueInfo.HaiYuan.business.drugs.entity.DrugsDetailed;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;


/**
 * 药品详细信息表
 * @ClassName: DrugsDetailedMapper
 * @tableName: tj_hai_drugs_detailed
 * @author suxch
 * @date 2019年4月23日  上午10:06:39
 */
@Mapper
public interface DrugsDetailedMapper extends BaseMapper<DrugsDetailed> {

    /**
     * 批量新增药品详细信息
     * @Title: batchAddDrugsDetailedInfo
     * @param drugsDetailedList
     * @return int
     * @throws
     */
    int batchAddDrugsDetailedInfo(List<DrugsDetailed> drugsDetailedList);

    /**
     * 新增药品详细信息
     * @Title: addDrugsDetailedInfo
     * @param drugsDetailed
     * @return int
     * @throws
     */
    int addDrugsDetailedInfo(DrugsDetailed drugsDetailed);

    /**
     * 批量删除药品详细信息
     * @Title: batchDelDrugsDetailedInfoByUnids
     * @param drugsDetailedUnids
     * @return int
     * @throws
     */
    int batchDelDrugsDetailedInfoByUnids(ArrayList<String> drugsDetailedUnids);

    /**
     * 删除药品详细信息
     * @Title: delDrugsDetailedInfoByUnid
     * @param unid
     * @return int
     * @throws
     */
    int delDrugsDetailedInfoByUnid(String unid);

    /**
     * 批量更新药品详细信息
     * @Title: batchUpdateDrugsDetailedInfoByUnid
     * @param drugsDetailedList
     * @return int
     * @throws
     */
    int batchUpdateDrugsDetailedInfoByUnid(List<DrugsDetailed> drugsDetailedList);

    /**
     * 更新药品详细信息
     * @Title: updateDrugsDetailedInfoByUnid
     * @param drugsDetailed
     * @return int
     * @throws
     */
    int updateDrugsDetailedInfoByUnid(DrugsDetailed drugsDetailed);

    /**
     * 分页查询药品详细信息
     * @Title: queryDrugsDetailedInfo
     * @param paramMap
     * @return List<DrugsDetailed>
     * @throws
     */
    List<DrugsDetailed> queryDrugsDetailedInfo(Map<String, Object> paramMap);

    /**
     * 查询药品详细信息
     * @Title: queryDrugsDetailedInfo
     * @return List<DrugsDetailed>
     * @throws
     */
    List<DrugsDetailed> queryDrugsDetailedInfo();

    /**
     * 条件查询药品详细信息数量
     * @Title: queryDrugsDetailedInfoCount
     * @param paramMap
     * @return Integer
     * @throws
     */
    Integer queryDrugsDetailedInfoCount(Map<String, Object> paramMap);

    /**
     * 查询药品详细信息数量
     * @Title: queryDrugsDetailedInfoCount
     * @return Integer
     * @throws
     */
    Integer queryDrugsDetailedInfoCount();

}
